﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decisions.HL7
{
    public interface ILogAdapter {

        bool IsDebugEnabled();

        void LogDebug(string message, params object[] parameters);

        void LogWarn(string message, params object[] parameters);
    }

    public static class LogRegistry
    {
        private static ILogAdapter logAdapter;

        public static ILogAdapter Logger
        {

            get
            {

                if (logAdapter == null)
                {

                    logAdapter = new DefaultHL7Logger();

                }
                return logAdapter;

            }
            set
            {
                logAdapter = value;
            }
        }

    }
}
